package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;

//水雷潜艇
public class MineSubmarine extends SeaObject implements EnemyLife{

    public MineSubmarine(){
        super(63,19);
    }
    public void step(){
        x += speed;
    }
    public ImageIcon getImage(){
        if (isLive()){
            return Images.minesubm;
        }else {
            return null;
        }
    }
    public int getLife(){
        return 1;
    }

}
